<?php echo $form->textAreaRow($model,'text');?>

<?php $this->widget('application.extensions.tinymce.SladekTinyMce'); ?>

 
<script type="text/javascript">
 
    tinymce.init({
    selector: "textarea#Content_text",
    theme: "modern",
    menubar:false,
    statusbar: false,
    width: 900,
    height: 300,
    plugins: [
         "autolink link image lists print preview hr anchor pagebreak",
         "searchreplace visualblocks visualchars fullscreen insertdatetime media",
         "save directionality emoticons template textcolor"
   ],
   content_css: "css/content.css",
   toolbar: " undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | forecolor backcolor emoticons", 
   style_formats: [
        {title: 'Bold text', inline: 'b'},
        {title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},
        {title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},
        {title: 'Example 1', inline: 'span', classes: 'example1'},
        {title: 'Example 2', inline: 'span', classes: 'example2'},
        {title: 'Table styles'},
        {title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}
    ]
 }); 
 </script>